﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LanSunERP
{
    using System;
    using System.ServiceModel;
    using System.Windows.Forms;
    using System.Diagnostics;
    using System.Collections.Generic;
    using System.Runtime.Serialization;
    using System.Collections;
    using System.Data;
    using System.Data.SqlClient;
   public class QueryCommand
    {
    
        public string RequestJob;
        public SqlCommand cmdSQL;
        public DataRow dwRequest;
        public DataTable dtRequest;
        
        public QueryCommand()
        {
        }
        public QueryCommand(SqlCommand cmdSQL, DataTable dtRequest,string RequestJob)
        {
            this.cmdSQL = cmdSQL;
            this.dtRequest = dtRequest;
            this.RequestJob = RequestJob;
            if(dtRequest!=null){
            if (dtRequest.Rows.Count > 0)
                dwRequest = dtRequest.Rows[0];
            else
                dwRequest = null;
            }
        }
        public virtual SqlCommand BuildInstanceKey(SqlCommand cmdSQL,DataRow dwTemp)
        {
                   return cmdSQL;
        }
        
   }
}
